import request from '@/utils/request'

// 查询质检项列表
export function listQualityItem(query) {
  return request({
    url: '/quality/qualityItem/list',
    method: 'get',
    params: query
  })
}

// 查询质检项详细
export function getQualityItem(id) {
  return request({
    url: '/quality/qualityItem/' + id,
    method: 'get'
  })
}

// 新增质检项
export function addQualityItem(data) {
  return request({
    url: '/quality/qualityItem',
    method: 'post',
    data: data
  })
}

// 修改质检项
export function updateQualityItem(data) {
  return request({
    url: '/quality/qualityItem',
    method: 'put',
    data: data
  })
}

// 删除质检项
export function delQualityItem(id) {
  return request({
    url: '/quality/qualityItem/' + id,
    method: 'delete'
  })
}
